package org.edu.modules.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("ve_addons_survey_question_relation")
@ApiModel(value = "ve_addons_survey_question_relation对象", description = "问卷题目关系")
public class VeAddonsSurveyQuestionRelation
        implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("问卷id")
    private Integer surveyid;
    @ApiModelProperty("问题id")
    private Integer questionid;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation setId(Integer id) {
        this.id = id;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation setSurveyid(Integer surveyid) {
        this.surveyid = surveyid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation setQuestionid(Integer questionid) {
        this.questionid = questionid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeAddonsSurveyQuestionRelation(id=" + getId() + ", surveyid=" + getSurveyid() + ", questionid=" + getQuestionid() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation)) return false;
        org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation other = (org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$surveyid = getSurveyid(), other$surveyid = other.getSurveyid();
        if ((this$surveyid == null) ? (other$surveyid != null) : !this$surveyid.equals(other$surveyid)) return false;
        Object this$questionid = getQuestionid(), other$questionid = other.getQuestionid();
        if ((this$questionid == null) ? (other$questionid != null) : !this$questionid.equals(other$questionid))
            return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        return !((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestionRelation;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $surveyid = getSurveyid();
        result = result * 59 + (($surveyid == null) ? 43 : $surveyid.hashCode());
        Object $questionid = getQuestionid();
        result = result * 59 + (($questionid == null) ? 43 : $questionid.hashCode());
        Object $placeId = getPlaceId();
        return result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public Integer getSurveyid() {
        /* 40 */
        return this.surveyid;
    }

    public Integer getQuestionid() {
        /* 43 */
        return this.questionid;
    }

    public Integer getPlaceId() {
        /* 46 */
        return this.placeId;
    }
}



